package com.ruoyi.recipe.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 材料对象 recipe_dish_item
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
public class RecipeDishItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 材料ID */
    private Long itemId;

    /** 菜品ID */
    private Long dishId;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dishName;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String itemName;

    /** 材料用量 */
    @Excel(name = "材料用量")
    private String itemAmount;

    /** 材料单位 */
    private String itemUnit;

    /** 材料顺序 */
    @Excel(name = "材料顺序")
    private Integer itemSort;

    /** 材料类型（0主料 1辅料） */
    @Excel(name = "材料类型", readConverterExp = "0=主料,1=辅料")
    private String itemType;

    /** 状态（0正常 1停用） */
    private String status;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public String getDishName() { return dishName; }

    public void setDishName(String dishName) { this.dishName = dishName; }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setItemAmount(String itemAmount)
    {
        this.itemAmount = itemAmount;
    }

    public String getItemAmount()
    {
        return itemAmount;
    }

    public void setItemUnit(String itemUnit) 
    {
        this.itemUnit = itemUnit;
    }

    public String getItemUnit() 
    {
        return itemUnit;
    }

    public void setItemSort(Integer itemSort) 
    {
        this.itemSort = itemSort;
    }

    public Integer getItemSort() 
    {
        return itemSort;
    }

    public void setItemType(String itemType) 
    {
        this.itemType = itemType;
    }

    public String getItemType() 
    {
        return itemType;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("dishId", getDishId())
            .append("itemName", getItemName())
            .append("itemAmount", getItemAmount())
            .append("itemUnit", getItemUnit())
            .append("itemSort", getItemSort())
            .append("itemType", getItemType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
